package com.nbsaas.boot.student.data.entity;

import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.InputType;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Data
@Entity
@Table(name = "bs_student")
public class Student extends AbstractEntity {

    @FormField(title = "头像", sortNum = "1", grid = false,col = 22,type = InputType.image)
    @Column(length = 20)
    private String avatar;


    @Comment("学号")
    @SearchItem(name = "studentNo",key = "studentNo",label = "学号")
    @FormField(title = "客户名称", sortNum = "1", grid = true,required = true,col = 22)
    @Column(length = 30)
    private String studentNo;

    @Comment("姓名")
    @SearchItem(name = "name",key = "name",label = "姓名")
    @FormField(title = "姓名", sortNum = "1", grid = true,required = true,col = 22)
    @Column(length = 30)
    private String name;

    @FormField(title = "电话", sortNum = "1", grid = true,col = 22)
    @Column(length = 20)
    private String phone;



}
